/* Speaking & Conversation Tool - Kid Centric Design    */
:root {
    --speaking-primary-bg: #f5f4ed;
    --speaking-secondary-bg: #ffc62f;
    --speaking-dark: #1e1e1e;
    --speaking-border-width: 4px;
}

/* Main Overlay */
.three-speaking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffebc4 0%, #ffebc4ad 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

/* Container */
.three-speaking-container {
    background: var(--speaking-primary-bg);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(30, 30, 30, 0.3);
    overflow-y: auto;
    border: var(--speaking-border-width) solid var(--speaking-secondary-bg);
}

/* Header */
.three-header {
    background: linear-gradient(45deg, #dfab46 40%, #dfb86d 40%, #dfab46 61%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Stats */
.three-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 25px;
}

.three-stat-card {
    background: var(--speaking-secondary-bg);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid var(--speaking-dark);

}

.stat-score {
    font-size: 1.8rem;
    font-weight: 900;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Menu Cards */
.three-activity-row {
    display: flex;
    gap: 20px;
    padding: 30px;
}

.three-activity-card {
    background: var(--speaking-secondary-bg);
    border-radius: 25px;
    padding: 35px;
    text-align: center;
    cursor: pointer;
    border: 4px solid var(--speaking-dark);
    flex: 1;
    transition: 0.3s;
}

.three-activity-card:hover {
    transform: translateY(-5px);
}

/* Updated Game Elements with Large Headings */
.game-content {
    padding: 30px;
}

.section-title {
    color: var(--speaking-dark);
    font-size: 2.5rem;
    border: 6px solid var(--speaking-secondary-bg);
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 900;
    background: #fff;
    border-radius: 20px;
}

/* New Part Title Styling */
.part-title {
    color: var(--speaking-dark);
    font-size: 2.5rem;
    border: 6px solid var(--speaking-secondary-bg);
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 900;
    background: #fff;
    border-radius: 20px;



}

.sub-category-box {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 15px;
}

.category-subtitle {
    font-size: 1.8rem;
    color: #e67e22;
    margin-bottom: 15px;
    border-left: 8px solid #e67e22;
    padding-left: 15px;
    font-weight: 800;
}

/* Full Space Adjusted Grid */
.greetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
    width: 100%;
}

.greeting-item {
    background: #fdfcf7;
    border: 3px solid var(--speaking-secondary-bg);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    padding: 20px;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Mark as Completed Button */
.mark-completed-div {
    background: #27ae60;
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    text-align: center;
    font-weight: 800;
    cursor: pointer;
    margin: 20px auto;
    max-width: 400px;
    border: 3px solid var(--speaking-dark);
    transition: 0.2s;
}

.mark-completed-div:hover {
    background: #2ecc71;
    transform: scale(1.05);
}

/* Sentence Builder Mechanics */
.word-drop-zone {
    background: white;
    min-height: 80px;
    border: 3px dashed var(--speaking-secondary-bg);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.word-bank {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.word-tile {
    background: var(--speaking-secondary-bg);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid var(--speaking-dark);
    cursor: pointer;
    box-shadow: 0 4px 0 #000;
}

.audio-prompt-box {
    background: #fff8e1;
    border: 3px solid var(--speaking-secondary-bg);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 800;
}

/* Action Buttons */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.three-action-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    color: white;
    background: var(--speaking-dark);
}

.check-btn {
    background: #27ae60 !important;
}

.reset-btn {
    background: #e67e22 !important;
}

.undo-btn {
    background: #7f8c8d !important;
}

/* Self Intro specific */
.self-intro-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.intro-item {
    justify-content: space-between !important;
    text-align: left;
    background: white !important;
}

.intro-text {
    display: flex;
    flex-direction: column;
}

.intro-label {
    color: #e67e22;
    font-size: 1rem;
}

.note-box {
    background: #fff5e6;
    border: 2px dashed #e67e22;
    margin-top: 30px;
    padding: 20px;
}

.three-close-x {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--speaking-dark);
}

.feedback-text {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.4rem;
}

.section-divider {
    border: 0;
    height: 3px;
    background: var(--speaking-secondary-bg);
    margin: 30px 0;
    opacity: 0.5;
}

/* Question Words Specific CSS */
.question-words-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.q-word-card {
    background: white;
    border: 4px solid var(--speaking-secondary-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
}

.q-word-card:hover {
    transform: translateY(-3px);
}

.q-word-header {
    background: var(--speaking-secondary-bg);
    padding: 15px;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--speaking-dark);
}

.q-word-body {
    padding: 20px;
}

.q-usage {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

.q-example-box {
    background: #fdfcf7;
    border: 2px dashed #e67e22;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    color: #e67e22;
    font-weight: 700;
    text-align: center;
    font-size: 1.2rem;
}

.q-example-box:hover {
    background: #fff5e6;
}

/* Exercise Section CSS */
.exercise-card {
    background: white;
    border: 4px solid #3498db;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.exercise-question {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--speaking-dark);
}

.exercise-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.opt-btn {
    background: #3498db;
    color: white;
    border: 3px solid #2980b9;
    padding: 12px 25px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.opt-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Daily Phrase Image Exercise Additions */
.phrase-img-box {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 20px;
    border: 5px solid var(--speaking-secondary-bg);
    overflow: hidden;
    background: #eee;
}

.phrase-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= NEW SELF INTRO LEARNING FEATURE ================= */

/* Intro Learning Box */
.self-intro-learn-box {
    background: #ffffff;
    border: 4px solid #e67e22;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.self-intro-learn-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: #e67e22;
}

/* Steps */
.intro-steps {
    display: grid;
    gap: 15px;
}

.intro-step {
    background: #fff5e6;
    border-left: 8px solid #e67e22;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Types Section */
.intro-types {
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.intro-type-card {
    background: #fdfcf7;
    border: 3px dashed #dfab46;
    border-radius: 18px;
    padding: 20px;
}

.intro-type-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #df8c14;
    margin-bottom: 10px;
}

.intro-example {
    background: white;
    border: 2px solid #dfab46;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 700;
}



/* Tap & Repeat Specific Styling */
.difficult-sentences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 10px;
}

.repeat-card {
    background: white;
    border: 3px solid #9b59b6;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}

.repeat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.2);
}

.repeat-card .icon-mic {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.repeat-card .sentence-hi {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--speaking-dark);
    margin-bottom: 8px;
}

.repeat-card .sentence-en {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}






.intro-example:hover {
    background: #fff3d4;
}

/* ================= END NEW FEATURE ================= */

.yes-btn {
    background: #27ae60 !important;
    border-color: #1e8449 !important;
}

.no-btn {
    background: #e74c3c !important;
    border-color: #c0392b !important;
}

/* ===== HELP SECTION STYLES ===== */

.three-help-content {
    padding: clamp(25px, 5vw, 40px);
    max-width: 900px;
    margin: 0 auto;
}

.three-help-issue {
    background: white;
    border: 3px solid var(--speaking-dark);
    border-radius: clamp(12px, 2.5vw, 20px);
    padding: clamp(20px, 4vw, 30px);
    margin-bottom: clamp(20px, 4vw, 25px);
    display: flex;
    gap: clamp(15px, 3vw, 20px);
    align-items: flex-start;
    transition: all 0.3s ease;
}

.three-help-issue:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.three-help-number {
    flex-shrink: 0;
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: linear-gradient(135deg, var(--speaking-secondary-bg) 0%, #dfab46 100%);
    color: var(--speaking-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
    border: 3px solid var(--speaking-dark);
}

.three-help-text {
    flex: 1;
}

.three-help-text h4 {
    font-size: clamp(16px, 3vw, 22px);
    color: var(--speaking-dark);
    margin: 0 0 10px 0;
    font-weight: 800;
    line-height: 1.3;
}

.three-help-text p {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #2d3436;
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
}

.three-help-text p span {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    opacity: 0.85;
    font-family: 'Poppins', sans-serif;
}

.three-back-btn {
    background: var(--speaking-dark);
    color: white;
    border: none;
    padding: clamp(12px, 2.5vw, 18px) clamp(30px, 5vw, 45px);
    border-radius: 25px;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin: clamp(15px, 3vw, 20px) auto 0;
    display: block;
    width: fit-content;
}

.three-back-btn:hover {
    background: #2d2d2d;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments for Help Section */
@media (max-width: 768px) {
    .three-help-content {
        padding: clamp(15px, 3vw, 25px);
    }

    .three-help-issue {
        flex-direction: row;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .three-help-issue {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .three-help-number {
        align-self: center;
    }

    .three-back-btn {
        width: 100%;
    }
}